<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <title>vuekoa--mobileshop</title>
  </head>
  <body>
    <div id="app"></div>
    <script>
      // 以iPhone5为设计稿，实现移动端的适配
      let htmlWidth = document.documentElement.clientWidth || document.body.clientWidth;
      if (htmlWidth >= 750) {htmlWidth=750}
      document.getElementsByTagName('html')[0].style.fontSize = (htmlWidth * 16 / 320) + 'px';
      console.log(document.getElementsByTagName('html')[0].style.fontSize)
    </script>
  </body>
</html>
